<?php

/**
 * TOP API: taobao.wlb.tradeorder.get request
 *
 * @author auto create
 * @since  1.0, 2013-09-13 16:51:03
 */
class Taobao_Request_WlbTradeorderGetRequest {
	/**
	 * 指定交易类型的交易号
	 **/
	private $tradeId;

	/**
	 * 交易类型:
	 * TAOBAO--淘宝交易
	 * PAIPAI--拍拍交易
	 * YOUA--有啊交易
	 **/
	private $tradeType;

	private $apiParas = array();

	public function setTradeId($tradeId) {
		$this->tradeId = $tradeId;
		$this->apiParas["trade_id"] = $tradeId;
	}

	public function getTradeId() {
		return $this->tradeId;
	}

	public function setTradeType($tradeType) {
		$this->tradeType = $tradeType;
		$this->apiParas["trade_type"] = $tradeType;
	}

	public function getTradeType() {
		return $this->tradeType;
	}

	public function getApiMethodName() {
		return "taobao.wlb.tradeorder.get";
	}

	public function getApiParas() {
		return $this->apiParas;
	}

	public function check() {

		Taobao_RequestCheckUtil::checkNotNull($this->tradeId, "tradeId");
		Taobao_RequestCheckUtil::checkNotNull($this->tradeType, "tradeType");
	}

	public function putOtherTextParam($key, $value) {
		$this->apiParas[$key] = $value;
		$this->$key = $value;
	}
}
